﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Utility;

namespace ConfigTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            textBox1.Clear();
            textBox1.AppendText(ConfigHelper.GetValue("IETitle"));
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Trim() == "")
            {
                MessageBox.Show("请输入");
            } 
            else
            {
                string sTmp = textBox1.Text.Trim();

                ConfigHelper.SetValue("IETitle", "实验室");
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Clear();
            textBox1.AppendText(ConfigHelper.GetValue("IETitle"));
        }


    }
}
